package FanXin;

public class TestPerson {
    public static void main(String[] args) {
        Person person = new Person();
        person.setX(20);
        person.setY(22.3);
        person.setZ("大家好！");
        System.out.println("person.getX() = " + (Integer)person.getX());
        System.out.println("person.getX() = " + (Double)person.getY());
        System.out.println("person.getZ() = " + (String) person.getZ());

        Person1<Integer> person1 = new Person1<>();
        person1.setX(11);
        person1.setY(122);
        person1.setZ(233);
        System.out.println("person1.getZ() = " + person1.getZ());
        System.out.println("person1.getX() = " + person1.getX());
        System.out.println("person1.getZ() = " + person1.getZ());
    }
}
